const express = require('express');
const app =express();

app.listen(3000,()=>console.log('启动了'));
// 加入这两行就可以用浏览器测试
const cors =require('cors');
app.use(cors())

app.use(express.urlencoded({
    extended:true
}))
 
// 加载路由模块
const login = require('./routers/login')
app.use('/api',login);
